package com.fufan.mtsaas.modules.newtech.xjsyearaudit.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.fufan.mtsaas.modules.newtech.xjsyearaudit.bo.request.XjsYearAuditQueryRequest;
import com.fufan.mtsaas.modules.newtech.xjsyearaudit.bo.response.XjsYearAuditResponse;
import com.fufan.mtsaas.modules.newtech.xjsyearaudit.model.XjsYearAudit;

import java.util.List;

/**
 * 新技术年审表
 *
 * @author Liby
 * @since 2025-01-05 19:45:27
 */
public interface XjsYearAuditDao extends BaseMapper<XjsYearAudit> {

    /**
     * 分页查询
     * @param page
     * @param entity
     * @return
     */
    List<XjsYearAuditResponse> selectByPage(Page<XjsYearAuditResponse> page, XjsYearAuditQueryRequest entity);

    /**
     * 分页查询,待我审批的，我审批过的
     * @param page
     * @param entity
     * @return
     */
    List<XjsYearAuditResponse> selectByProcessAndPage(Page<XjsYearAuditResponse> page,XjsYearAuditQueryRequest entity);

    /**
     * 查询分析-年审列表分页查询
     * @param page
     * @param entity
     * @return
     */
    List<XjsYearAuditResponse> selectByYearAuditPage(Page<XjsYearAuditResponse> page, XjsYearAuditQueryRequest entity);

    Integer selectTotal(Integer type);

}

